package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.pojo.Student;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass=SayHello.class)
@Transactional
public class SayHelloImpl implements SayHello {
    @Override
    public Student getStudent(Integer id) {
        Student student = new Student();
        student.setName("123");
        student.setId(id);
        return student;
    }
}
